package com.tele.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import com.tele.domain.Gpu;
import com.tele.service.ints.GpuService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequiredArgsConstructor
@SaCheckLogin

public class GpuController {
    final GpuService gpuService;
    @GetMapping("getAllGpu")
    List<Gpu> getAllGpu(){
        return gpuService.getAllGpu();
    }
}
